package com.wuzhuo.information.service.serviceImpl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.wuzhuo.information.pojo.PageBean;
import com.wuzhuo.information.pojo.User;
import com.wuzhuo.information.service.userService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wuzhuo.information.mapper.userMapper;

import java.util.List;

@Service
public class userServiceImpl implements userService {

    @Autowired
    private userMapper userMapper;

    @Override
    public void save(User user) {
        userMapper.insert(user);
    }

    @Override
    public User login(User user) {
        return userMapper.getByUsernameAndPassword(user);
    }

    @Override
    public void read(List<Long> ids) {
        userMapper.read(ids);
    }
}
